/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo924;

import demo923.*;
import java.util.Scanner;

/**
 *
 * @author Administrator
 */
public class StringDemo {

    public static void main(String args[]) {

        String names = "zhang li   wang";
       // String ns[] = names.split("[ ]+");
        String ns[]={"zhang","li","wang"};
        String s = "zhang5li6wang";
        String n[] = names.split("\\d{1,2}");
        String n1[] = names.split("\\d+");
        String s1 = "57n6w6";
        String n2[] = s1.split("[a-zA-Z]+");
        Scanner sc = new Scanner(System.in);
        // System.out.println(sc.nextLine());


        String verifycode = "";
        int y;
        char c;
        for (int j = 1; j <= 20; j++) {
            verifycode = "";
            for (int i = 1; i <= 6; i++) {
                y = (int) (Math.random() * 26) + 65;
                c = (char) y;
                verifycode = verifycode + c;
            }
            System.out.println(verifycode);
        }




    }
}
